package com.spic.system.domain;

import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableField;
import java.util.List;

/**
 * 数据权限对象 sys_datascope
 *
 * @author spic
 * @date 2022-01-05
 */
public class SysDatascope extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 角色ID */
    @Excel(name = "角色ID")
    private Long roleId;

    /** 菜单ID */
    @Excel(name = "菜单ID")
    private Long meunId;

    /** 菜单路径 */
    @Excel(name = "菜单路径")
    private String meunPath;

    /** 权限值 */
    @Excel(name = "权限值")
    private Integer datascope;


    /** 菜单列表 */
    @TableField(exist = false)
    private List<SysMenu> sysMenuList;

    public List<SysMenu> getSysMenuList() {
        return sysMenuList;
    }

    public void setSysMenuList(List<SysMenu> sysMenuList) {
        this.sysMenuList = sysMenuList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRoleId(Long roleId)
    {
        this.roleId = roleId;
    }

    public Long getRoleId()
    {
        return roleId;
    }
    public void setMeunId(Long meunId)
    {
        this.meunId = meunId;
    }

    public Long getMeunId()
    {
        return meunId;
    }
    public void setMeunPath(String meunPath)
    {
        this.meunPath = meunPath;
    }

    public String getMeunPath()
    {
        return meunPath;
    }
    public void setDatascope(Integer datascope)
    {
        this.datascope = datascope;
    }

    public Integer getDatascope()
    {
        return datascope;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleId", getRoleId())
            .append("meunId", getMeunId())
            .append("meunPath", getMeunPath())
            .append("datascope", getDatascope())
            .toString();
    }
}
